package com.qf.dao;

import com.qf.entity.OrderSetting;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {

//    @Select("select * from t_ordersetting where orderDate between #{startDate} and #{endDate}")
//    List<OrderSetting> findListByOrderdate(@Param("startDate") String startDate, @Param("endDate") String endDate);
//
//    @Update("update t_ordersetting set number=#{number} where orderDate=#{orderDate}")
//    int updateNumberByOrderdate(@Param("number") Integer number,@Param("orderDate") String orderDate);
//
//    @Select("select * from t_ordersetting where orderDate=#{dateStr}")
//    OrderSetting findOneByOrderDate(String dateStr);
//
//    @Insert("insert into t_ordersetting (orderDate,number,reservations) values (#{orderDate},#{number},#{reservations})")
//    int insert(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);

    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);
}
